package com.springinaction.springidol;

/**
 * 诗人表演者
 * @author Administrator
 *
 */
public class PoeticJuggler extends Juggler{

	private Poem poem;

	public PoeticJuggler(Poem poem) {
		super();
		this.poem = poem;
	}
	
	public PoeticJuggler(int beanBags, Poem poem){
		super(beanBags);
		this.poem = poem;
	}
	
	public void perform() throws PerformanceException{
		super.perform();
		System.out.println("While reciting ...");
		poem.recite();
	}
}
